- /* sfomuldb.cpp by K.Tsuru */
- // function ID = 724, 726, 734 DRADIX
- /****************************************
- SFraction class
- It provides the multiplication by double.
- *****************************************/
- #ifndef SN_H
- #include "sn.h"
- #endif
- SFraction operator*(const SFraction& m, double d){
- SFraction r; // r.reduceDone = false;
- if(d == 0.0) r.SetZero();
- else if(d == 1.0L) r = m;
- else if(d == -1.0L) r = -m;
- else r.Set( m.NumNR()*d, m.DenNR() ); // includes r.reduce(0);
- return r;
- }
-
sfomuldb.cpp : last modifiled at 2016/04/22 11:14:53(520 bytes)
created at 2015/12/22 16:07:29
The creation time of this html file is 2016/09/13 19:56:38 (Tue Sep 13 19:56:38 2016).